<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
      
    
		},
		onShow: function() {
			
      if(uni.getStorageSync('openid') === '') {
        return
      }else {
        console.log('我进来了')
        uni.request({
          url: uni.$http.baseUrl + '/jobSeeker/getInfo?openId=' + uni.getStorageSync('openid'),
          method:'GET',
          header:{
            token: uni.getStorageSync('tokenValue')
          },success(res) {   
            if(res.data.statusCode !== 200) {
              return
            }else{
              console.log('ppppppp==>' , res)
              const obj = res.data.data
              uni.setStorageSync('userinfo' , obj)
            }
           
          }
        })
        
      }
      
      
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
  @import "uview-ui/index.scss" ;
    uni-page-body,html,body{  
          height: 100%;  
          background-color: #f7f7f7;
      }
</style>
